<?php
/*
# ------------------------------------------------------------------------
# JA Job Board Package
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die( 'Restricted access' );

jimport( 'joomla.application.component.view');


if (!class_exists ('JAView')) {
	class JAView extends JView
	{
		function display($tpl = null)
		{
			$viewmenu = JRequest::getVar('viewmenu',1);
			if (!$viewmenu || JRequest::getVar('tmpl')=='component') {
				parent::display($tpl);
				return;
			}else {
				
				$path = str_replace (JPATH_BASE, '', dirname(__FILE__));
				$path = 'administrator'.str_replace ('\\', '/', $path).'/assets/';
				JHTML::stylesheet ('style2.css', $path);
				JHTML::script ('menu.js', $path);
				
				if (JRequest::getVar('menuId',0)) {
					$_SESSION['menuId'] = JRequest::getVar('menuId',0);
				}
				require_once (dirname(__FILE__).DS.'menu.class.php');
				$model = $this->getModel('jaview');
				
						include (dirname(__FILE__).DS.'tmpl'.DS.'main.php');
			}
		}
		
	    	
	}
}
